using UnityEngine;
// [Assembly-CSharp.dll].DogController
public class DogController : MonoBehaviour
{
    // Fields
    public UnityEngine.Animator mAnimator;
    private bool isPlayed;
    public UnityEngine.GameObject deathVfx;
    public UnityEngine.GameObject loveEffect;
    
    // Methods
    private void Start()
    {
    
    }
    private void Update()
    {
    
    }
    public void Hurt()
    {
        mem[536882947] + 48.Play();
        this.mAnimator.SetBool(name:  -1610606919, value:  true);
        mem2[0] = 3;
    }
    private void OnCollisionEnter2D(UnityEngine.Collision2D collision)
    {
        if((System.String.op_Equality(a:  collision.gameObject.tag, b:  -1610605751)) != true)
        {
                if((System.String.op_Equality(a:  collision.gameObject.tag, b:  -1610601399)) != true)
        {
                if((System.String.op_Equality(a:  collision.gameObject.tag, b:  -1610603609)) == false)
        {
            goto label_7;
        }
        
        }
        
        }
        
        mem2[0] = 3;
        UnityEngine.Vector3 val_11 = this.transform.position;
        Unknown val_12 = UnityEngine.Object.Instantiate<System.Object>(original:  this.deathVfx, position:  new UnityEngine.Vector3() {x = val_11.x, y = val_11.y, z = val_11.z}, rotation:  new UnityEngine.Quaternion() {x = mem[536891277], y = mem[536891277] + 4, z = mem[536891277] + 8, w = mem[536891277] + 8 + 4});
        UnityEngine.Object.Destroy(obj:  this.gameObject);
        label_7:
        if((collision.gameObject.CompareTag(tag:  -1610608115)) == false)
        {
                return;
        }
        
        if((UnityEngine.PlayerPrefs.GetInt(key:  -1610605633)) != 1)
        {
                return;
        }
        
        if(this.isPlayed != false)
        {
                return;
        }
        
        this.isPlayed = true;
        if(this.loveEffect != 0)
        {
                UnityEngine.Vector3 val_21 = this.transform.position;
            UnityEngine.Object.Instantiate<System.Object>(original:  this.loveEffect).transform.position = new UnityEngine.Vector3() {x = val_21.x, y = val_21.y, z = val_21.z};
        }
        
        mem2[0] = 2;
        this.mAnimator.SetBool(name:  -1610605637, value:  true);
        mem[536882947] + 96.Play();
        int val_22 = UnityEngine.Random.Range(minInclusive:  0, maxExclusive:  mem[536882947] + 112 + 24);
        var val_24 = mem[536882947] + 112;
        if(val_22 < (mem[536882947] + 112 + 24))
        {
                val_24 = val_24 + (val_22 << 3);
            mem[536882947] + 72.GetComponent<System.Object>().clip = (mem[536882947] + 112 + (val_22) << 3) + 32;
            mem[536882947] + 72.Play();
            return;
        }
    
    }
    public DogController()
    {
    
    }

}
